home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Tool Chest / !Developer Utilities / Installer 4.0.3 SDK / Script Examples / Search Proc [insp] Example / Makefile < prev    next >
Encoding:
Makefile  |  1994-09-12  |  2.4 KB  |  60 lines  |  [TEXT/MPS ]

  1. #
  2. #    mark young • 07/20/94
  3. #    
  4.  
  5. # To build this example, choose the "Build…" menu item from within
  6. # the "Build" menu in MPW. When asked for Program Name, type in the 
  7. # script name, in this case "myFileSearchProc" ( without double quotes ) 
  8. # and press the Enter key. Be sure that the Current Working Directory
  9. # for MPW is set to the directory containing this example.
  10.  
  11. # To build the Debugger version of this example, choose the "Build…" 
  12. # menu item from within the "Build" menu in MPW. When asked for Program 
  13. # Name, type in the script name, in this case "myFileSearchProc.debug" 
  14. # ( without double quotes ) and press the Enter key. Be sure that the Current 
  15. # Working Directory for MPW is set to the directory containing this example.
  16.  
  17. scriptName                = myFileSearchProc
  18. debugScriptName            = "{scriptName}.debug"
  19.  
  20. ScriptCheckDir            = :::ScriptCheck 4.0.3:
  21. InstallerRIncDir        = :::DeveloperInterfaces:RIncludes:
  22. InstallerDebuggerDir    = :::Installer Debugger 4.0:
  23. InstallerCSrcDir        = :::DeveloperInterfaces:CSources:
  24. InstallerCIncDir        = :::DeveloperInterfaces:CIncludes:
  25.  
  26. # You may use this makefile to compile your own Search Procedure code segment.
  27. # Just replace the 'sourceFile' value "FindTargetFile" with the name of your 
  28. # source file ( without the .c extension ).
  29. sourceFile                = FindTargetFile
  30.  
  31.  
  32. OBJECTS                    = {sourceFile}.c.o
  33. COptions                = -b -r -sym on
  34. LinkOptions                = -mf -sym on
  35.  
  36. # create debug version of the installer script
  37. "{debugScriptName}" ƒ "{scriptName}"
  38.     Duplicate -y "{scriptName}" "{scriptName} w/ Debugger"
  39.     Rez -m "{InstallerDebuggerDir}Installer Debugger.r" -append -o "{scriptName} w/ Debugger"
  40.  
  41. # create installer script
  42. "{scriptName}" ƒ "{sourceFile}" "{scriptName}.r"
  43.     set theTime    "'`date -d -s` 12:00:00 PM'"
  44.     Rez "{scriptName}.r" -o "{scriptName}" -t 'kajr' -c 'kajr' -i "{InstallerRIncDir}"
  45.     SetFile -a b -d {theTime} {scriptName}
  46.     "{ScriptCheckDir}ScriptCheck" "{scriptName}" -h -d -a
  47.     SetFile -m {theTime} "{scriptName}"
  48.  
  49. # link the object file for the search procedure code segment
  50. "{sourceFile}" ƒ Makefile "{OBJECTS}"
  51.     # be sure to specify the same 'infn' ID# as the one in 'insp' definition in .r file
  52.     Link {LinkOptions} -t rsrc -c RSED -rt infn=20 -m "{sourceFile}" -sg "{sourceFile}" ∂
  53.         "{OBJECTS}" ∂
  54.         "{Libraries}Interface.o" ∂
  55.         "{Libraries}Runtime.o" ∂
  56.         -o "{sourceFile}.rsrc"
  57.         
  58. "{OBJECTS}" ƒ Makefile "{sourceFile}.c"
  59.     C {COptions} "{sourceFile}.c" -i "{InstallerCIncDir}","{InstallerCSrcDir}","{InstallerRIncDir}"
  60.